﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using PJ.Business;
using Microsoft.Practices.Composite.Events;
using PJ.Business.SalePurchase.Sale;
using PJ.Business.Partner;

namespace PJ.Presentation.Partner
{
    public class CustomerInfoModel : PartnerInfoModel, ICustomerInfoModel
    {
        public CustomerInfoModel()
            : base(null, null, null)
        {
        }
        [Microsoft.Practices.Unity.InjectionConstructor]
        public CustomerInfoModel(ICustomerInfoView view, IEventAggregator aggregator, ICustomerService service)
            : base(view, aggregator, service)
        {
            EventAggregator.GetEvent<CustomerIDChangeEvent>().Subscribe(EntityIDChange); ;
        }
    }
}
